import { createRouter,createWebHistory } from "vue-router";
import routes from "./base.js";
import nProgress from "nprogress";
import "nprogress/nprogress.css";


const router = createRouter({
    history: createWebHistory(),
    routes,
})

router.beforeEach((to,from,next)=>{
    nProgress.start();
    next();
})

router.afterEach(()=>{
    nProgress.done();
})

export default router